﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserProfile.aspx.cs" Inherits="DBWTProject.useradministration.UserProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

<script type="text/javascript">
    $(document).ready(function () {
        //hier ggf. eine Clientseitige Überprüfung (wie in MyRoutes.aspx)


    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>User Profile</h2>
    <p>Here you can change your profile settings.<br />
    <asp:Label ID="lblError" runat="server" ForeColor="red"></asp:Label>
    </p>
    <table>
<%--        <tr>
            <th colspan="2" id="thChangeName"><a href="#" style="display:block;">Change user name or full name</a></th>
        </tr>--%>
        <tr class="tdChangeName">
            <td><asp:Label ID="lblUser" runat="server" AssociatedControlID="txbUser">User:</asp:Label></td>
            <td><asp:TextBox ID="txbUser" runat="server" CssClass="passwordEntry" ClientIDMode="Static"></asp:TextBox></td>
        </tr>
        <tr class="tdChangeName">
            <td><asp:Label ID="lblFullname" runat="server" AssociatedControlID="txbFullname">Full name:</asp:Label></td>
            <td><asp:TextBox ID="txbFullname" runat="server" CssClass="passwordEntry" ClientIDMode="Static"></asp:TextBox></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btnSubmitNames" runat="server" Text="Submit changes" 
                    onclick="btnSubmitNames_Click"  ClientIDMode="Static"/>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="lblPwOld" runat="server" AssociatedControlID="txbPwOld">Old password:</asp:Label></td>
            <td><asp:TextBox ID="txbPwOld" runat="server" CssClass="passwordEntry" TextMode="Password" ClientIDMode="Static"></asp:TextBox></td>
            <td><span id="txbPwOldHint"></span></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblPwNew" runat="server" AssociatedControlID="txbPwNew">New password:</asp:Label></td>
            <td><asp:TextBox ID="txbPwNew" runat="server" CssClass="passwordEntry" TextMode="Password" ClientIDMode="Static"></asp:TextBox></td>
            <td><span id="txbPwNewHint"></span></td>
        </tr>
        <tr>
            <td><asp:Label ID="lblPwNewRepeat" runat="server" AssociatedControlID="txbPwNewRepeat">Repeat new password:</asp:Label></td>
            <td><asp:TextBox ID="txbPwNewRepeat" runat="server" CssClass="passwordEntry" TextMode="Password" ClientIDMode="Static"></asp:TextBox></td>
            <td><span id="txbPwNewRepeatHint"></span></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <asp:Button ID="btnSubmitPassword" runat="server" Text="Submit new password" 
                    onclick="btnSubmitPassword_Click"  ClientIDMode="Static" OnClientClick="
                    hashValueInTextFieldWithId('txbPwOld','txbPwOldHint');
                    hashValueInTextFieldWithId('txbPwNew','txbPwNewHint');
                    hashValueInTextFieldWithId('txbPwNewRepeat','txbPwNewRepeatHint');"/>
            </td>
        </tr>
    </table>
</asp:Content>
